package com.song.ejf.service;

import java.util.List;
import java.util.Map;

import com.song.ejf.page.Page;
import com.song.ejf.pojo.SResourceGroup;

public interface ResourceGroupService {

	public void loadResourceGroupPage(Page page,String rgName) throws Exception;
	public boolean delResourceGroup(String[] checkItems) throws Exception;
	public void saveOrUpdateResourceGroup(SResourceGroup resource) throws Exception;
	public SResourceGroup findResourceGroupById(String id) throws Exception;
	//根据资源组id得到该组下的所有资源.
	public List<Map<String, String>> loadResGroupMapByRgID(String rgId) throws Exception;
	//得到所有未分组的资源.
	public List<Map<String, String>> loadAllNoGroupRes() throws Exception;
	//得到所有已经分组的资源
	public List<Map<String, String>> loadAllGroupedRes() throws Exception;
	//重新资源组
	public boolean updateConfigResGroup(String rgId,String checkItems) throws Exception;
	//加载所有资源组
	public List<Map<String, String>> loadAllResGroup() throws Exception;
}
